import React, { PureComponent } from 'react';
import { Image } from 'react-native';
type Props = {
  tintColor: any,
  images: any,
  activeImage: any,
  focused: boolean
}
class TabBarItem extends PureComponent<Props, State> {
  render () {
    const activeImage = this.props.activeImage || this.props.images
    return (
      <Image
        style={{ tintColor: this.props.tintColor, width: 25, height: 25 }}
        source={this.props.focused ? activeImage : this.props.images}
      />
    );
  }
}
export default TabBarItem;
